.class Lcom/waiqin365/lightapp/kehu/ch;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

.field private b:I


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;I)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->b:I

    iput p2, p0, Lcom/waiqin365/lightapp/kehu/ch;->b:I

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7

    const v6, 0x7f0c028f

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    iget v1, p0, Lcom/waiqin365/lightapp/kehu/ch;->b:I

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->c(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;I)I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->F(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->I(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/HashMap;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->G(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->H(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->F(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)I

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    const-string/jumbo v2, "default"

    invoke-static {v0, v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->f(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->J(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/HashMap;

    move-result-object v0

    const-string/jumbo v2, "default"

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/Fragment;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->K(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {v1, v6, v0}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commitAllowingStateLoss()I

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->M(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->invalidate()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->L(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/ArrayList;

    move-result-object v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->F(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->f(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->J(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/HashMap;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->J(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/HashMap;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->K(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Z

    move-result v2

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->J(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/HashMap;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/Fragment;

    invoke-virtual {v1, v6, v0}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commitAllowingStateLoss()I

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    const/4 v3, 0x0

    invoke-static {v2, v3}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->b(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;I)I

    new-instance v2, Lcom/waiqin365/lightapp/kehu/fe;

    invoke-direct {v2}, Lcom/waiqin365/lightapp/kehu/fe;-><init>()V

    new-instance v3, Landroid/os/Bundle;

    invoke-direct {v3}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v4, "appId"

    invoke-virtual {v3, v4, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v4, "cmId"

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->x(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v4, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v4, "tag"

    invoke-virtual {v3, v4, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v2, v3}, Landroid/support/v4/app/Fragment;->setArguments(Landroid/os/Bundle;)V

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->J(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Ljava/util/HashMap;

    move-result-object v3

    invoke-virtual {v3, v0, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/ch;->a:Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;->K(Lcom/waiqin365/lightapp/kehu/CMCustomerDetailsActivity;)Z

    move-result v3

    if-nez v3, :cond_0

    invoke-virtual {v1, v6, v2, v0}, Landroid/support/v4/app/FragmentTransaction;->replace(ILandroid/support/v4/app/Fragment;Ljava/lang/String;)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commitAllowingStateLoss()I

    goto/16 :goto_0
.end method
